using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SetPageIconController : MonoBehaviour
{
    public ScrollTouchPage horizontalScrollPage;
    public Transform nowIcon;
    // Start is called before the first frame update
    void Start()
    {
        horizontalScrollPage.EndEvent += ChangePageIcon;
    }

    public void ChangePageIcon() {
        nowIcon.SetSiblingIndex(Convert.ToInt32( horizontalScrollPage.NowIndex));
    }
   
}
